package com.qiangesoft.log.controller;

import com.alibaba.fastjson2.JSONObject;
import com.qiangesoft.log.core.Log;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试
 *
 * @author qiangesoft
 * @date 2024-04-29
 */
@RequestMapping("/test")
@RestController
public class TestController {


    @Log(module = "测试", operationName = "查询xx")
    @GetMapping("/get")
    public JSONObject get(String id) {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("id", 111);
        jsonObject.put("name", "张三");
        return jsonObject;
    }

}
